Why are there temples?

The Lord said, "Build a house to my name, for the Most High to dwell therein" (D&C 124:27). The Lord's Spirit dwells in His temples. The temple is a house of God. It is a place where we make covenants (or promises) with Heavenly Father. If we keep our covenants, we will be able to live with Him again.